# use third libs
set(alglib_SOURCE_DIR ${THIRD_LIB}/alglib)

# 引入源文件
file(GLOB ALGLIB_FILES "${alglib_SOURCE_DIR}/src/*")
source_group("${PROJECT_NAME}\\alglib" FILES ${ALGLIB_FILES})

macro(use_alglib ag_project_name)
  target_compile_definitions(${ag_project_name} PRIVATE USE_LIB_ALGLIB)
  # include alglib_SOURCE_DIR ==> alglib
  target_include_directories(${ag_project_name} PRIVATE ${alglib_SOURCE_DIR}/src)
endmacro(use_alglib)